<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       .box {
            width: 200px;
            height: 200px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div id="app">
       <div class="box" @click="fn"></div>
       <div class="box" @click="fn2(5,$event)"></div>
    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                msg: 'hello everyday',
                num: 0,
                info: ''
            },
            methods: {
                fn(e) {
                    console.log(e); // 事件对象
                },
                fn2(a,e) {
                    console.log(a,e);
                }
            }
        })
    </script>
</body>
</html>